$OpenBSD: patch-imap_mailbox_c,v 1.12 2015/05/11 06:03:40 ajacoutot Exp $

https://bugzilla.cyrusimap.org/show_bug.cgi?id=3376

--- imap/mailbox.c.orig	Fri May  8 05:49:52 2015
+++ imap/mailbox.c	Mon May 11 07:58:45 2015
@@ -2250,10 +2250,10 @@ static uint32_t crc_basic(const struct mailbox *mailbo
 	flagcrc ^= crc32_cstring(buf);
     }
 
-    snprintf(buf, sizeof(buf), "%u " MODSEQ_FMT " %lu (%u) %lu %s",
-	    record->uid, record->modseq, record->last_updated,
+    snprintf(buf, sizeof(buf), "%u " MODSEQ_FMT " " MODSEQ_FMT " (%u) " MODSEQ_FMT " %s", 
+	    record->uid, record->modseq, (modseq_t)record->last_updated,
 	    flagcrc,
-	    record->internaldate,
+	    (modseq_t)record->internaldate,
 	    message_guid_encode(&record->guid));
 
     return crc32_cstring(buf);
